home *** CD-ROM | disk | FTP | other *** search
/ Magnum One / Magnum One (Mid-American Digital) (Disc Manufacturing).iso / d8 / pml200.arc / PML.DOC < prev    next >
Text File  |  1990-05-28  |  15KB  |  319 lines

  1.     What PML does
  2.     ------------------------------
  3.  
  4.     PML (Prodigy MetaStock Load) reads a file containing the printed
  5.     output from Prodigy or Dow Jones Historical Quotes and extracts 
  6.     stock quotes from the file. These quotes are written to another 
  7.     file that can then be imported into a spreadsheet or loaded 
  8.     directly into MetaStock (*) Professional's data base. 
  9.  
  10.  
  11.  
  12.     What You Will Need to Use PML
  13.     ------------------------------
  14.  
  15.     You will need some method of "capturing" the Prodigy printer
  16.     output to a file, such as PRN2FILE, LPTx701.  Many BBS's contain
  17.     versions of these programs.  These programs make it possible to
  18.     print your mail, bulletins, quotes, news, etc. from Prodigy.
  19.     Prodigy "thinks" it is sending the output to a real printer at
  20.     LPT1:, but instead, it is being added to your print file.
  21.  
  22.     Other Programs You Might Find Useful 
  23.     --------------------------------------
  24.  
  25.     Another useful program to have is a Shareware program called
  26.     DKEY.  This program allows you to automate the keystrokes
  27.     required to log into Prodigy, jump to Quote List and print
  28.     your quotes.  If you use DKEY, you should also get a program
  29.     called PROWIDE (written by Pete Royston, Prodigy ID DBRK81A).
  30.     This program has a side effect of creating a type-ahead
  31.     buffer for Prodigy input commands.  This prevents the
  32.     keystroke automation from causing Prodigy to beep while it is
  33.     still WORKING.
  34.  
  35.  
  36.     Converting Prodigy Quotes to Spreadsheet Input Format
  37.     ------------------------------------------------------
  38.  
  39.     Once you have captured the Prodigy quotes in a file, you will want
  40.     to do something with them, right?  This is where PML comes in.  It
  41.     can read your Prodigy print file, skip over the letters and
  42.     bulletins you felt you had to save for later, extracting only the
  43.     quotes.  The quotes are written to a file, sorted by symbol and
  44.     date.  The symbol and date have quotes (") around them so that you
  45.     can import them into a spreadsheet easily. The default name for this
  46.     file is "PMLASC.PRN". Though this file can be named anything you want,
  47.     the rest of the document will refer to it as PMLASC.PRN.
  48.  
  49.     The following is a sample of the format of the data in the PMLASC.PRN
  50.     file with the 6 fields, Symbol, Date, High, Low, Close, Volume (in 
  51.     hundreds):
  52.         "AAPL","05/24/90",42.250,41.500,42.000,13226   
  53.         "ABT","05/25/90",73.875,72.500,73.125,2024    
  54.  
  55.  
  56.     (*) MetaStock Professional is a stock charting program from 
  57.         Equis Software.
  58.  
  59.     For MetaStock Professional Users
  60.     ---------------------------------
  61.  
  62.     If you have MetaStock Professional, PML can update your MSP data 
  63.     files with the quotes from the PMLASC.PRN file.  
  64.  
  65.     PML also generates a report as it updates the MSP data files.  For
  66.     each symbol updated, it contains the number of quotes, the AVERAGE
  67.     VOLUME for the symbol, the CHANGE IN PRICE from the previous
  68.     close, and the VOLUME% CHANGE (from the average volume).  This
  69.     last value can be very useful in spotting unusual activity in a
  70.     security.  This report can give you a jump on the rest of the
  71.     world as they wait for their Investor's Daily to arrive.  This
  72.     report is written to the file PML.RPT in the MSP DATA directory.
  73.  
  74.     An additional file is placed in the MSP DATA directory. It is 
  75.     named PMLSYM.SUM, and its purpose is to keep a running total of
  76.     the volume, high, and low for each symbol in the MASTER.
  77.  
  78.     +------------------------------------------------------------+
  79.     |                    N O T E                                 |
  80.     |    The first time you run PML to update your MSP files, it |
  81.     |    will take MUCH LONGER than normally would be required,  |
  82.     |    because it reads each file completely to compute the    |
  83.     |    necessary statistics, such as TOTAL VOLUME, HIGH, and   |
  84.     |    LOW price. After the totals have been computed and      |
  85.     |    stored in the file "PMLSYM.SUM" , it will not be neces- |
  86.     |    sary for PML to re-compute these amounts, so the update |
  87.     |    will be extremely fast.                                 |
  88.     |                                                            |
  89.     +------------------------------------------------------------+
  90.  
  91.  
  92.  
  93.  
  94.  
  95.     How to Use PML
  96.     -------------------------
  97.  
  98.     USAGE: PML {?} {-d [MSPdir]} {-q} {-[a|A] f0} {-p} {-v} f1 {..fn}
  99.      where ? = this help screen
  100.       -a = create ASCII format output in f0
  101.       -A = append to ASCII format output in f0
  102.       -d = specification of the path to the MSP data directory
  103.       -h = in conjunction with "-v", will divide all volume for 
  104.            each updated symbol by 100
  105.       -I = create 7-field ASCII output file only
  106.       -p = print a summary report of all MSP files
  107.       -qx  = Flag for level of "quietness" during MSP updating
  108.           where x is:
  109.           0 = "quiet" mode (suppresses all update messages)
  110.           1 = totals for each symbol as it is updated  
  111.           2 = very detailed output (slows down processing considerably)
  112.       -v = verify updated MetaStock files are in date order
  113.       -s = skip symbols not in MSP data base
  114.   MSPdir = the path to the MSP data directory (default DATA)
  115.   f0     = output file to contain "ASCII formatted" quotes
  116.            (default PMLASC.PRN)
  117.   f1..fn = files containing Prodigy quotes or
  118.            Dow Jones Historical Quotes (//HQ)
  119.  
  120.  
  121.     The primary function of PML is to scan your Prodigy print file for
  122.     stock quotes and make them into daily quotes.  In order to do
  123.     this, you have to tell PML where the Prodigy print file is
  124.     located.  This is usually the only command line parameter that is
  125.     necessary.
  126.  
  127.     Suppose you have the following directories set up:
  128.  
  129.              \PRODIGY             \MSP            \COMMANDS   \SAVE
  130.                 .                  |                 .
  131.                 .                  V                 pml.exe
  132.                 today              \DATA
  133.  
  134.     In other words, you have a file in the \PRODIGY directory named
  135.     "today" which is where you gather your Prodigy print lines.  You
  136.     have also placed "pml.exe" in some directory which is in your DOS
  137.     PATH specification.  Finally, your MetaStock data is in a
  138.     subdirectory of \MSP called DATA.  In order to run PML so that it
  139.     extracts the quotes from \PRODIGY\today, creates a file called
  140.     \MSP\pmlasc.prn, and updates the data files in \MSP\DATA, you need to
  141.     be in the \MSP directory when you type:
  142.  
  143.                            PML \prodigy\today
  144.  
  145.     If you want to name the ASCII file (normally "PMLASC.PRN") some
  146.     other name, or place it in another directory (say, \SAVE), you
  147.     would need to type
  148.  
  149.                   PML -a \SAVE\other.nam \prodigy\today
  150.  
  151.     
  152.     Additional PML Usage Notes
  153.     ----------------------------
  154.  
  155.     One nice feature of PML is that it can "fix" your MSP files if 
  156.     they get out of date sequence (usually due to use of
  157.     MCONVERT).  It reads the entire MSP data file, merges in the
  158.     quotes from Prodigy (or Dow Jones), sorts them, matching dates up,
  159.     and then writes the whole file out in order, dropping any
  160.     duplicates.  Dates read from the ASCII quote file supercede those
  161.     in the MSP data file, so you can make corrections by changing your
  162.     ASCII quote for a particular date.
  163.  
  164.  
  165.     PML will allow you to obtain your quotes on weekends or early
  166.     Monday morning before the market opens.  Even though the Prodigy
  167.     header says that the quote is for a Saturday, for example, PML is
  168.     aware that the market isn't open on Saturdays, so the quote is
  169.     "fixed up" to be for the preceding Friday.  Even if the quote is
  170.     listed on Monday, if it is prior to the market opening, it will
  171.     still be fixed up to be a Friday quote.
  172.  
  173.     Also, you can keep gathering print data to the Prodigy print file
  174.     for days, weeks or months.  PML doesn't mind.  It can handle up to
  175.     10,000 quotes in the Prodigy print file.  No need to keep creating
  176.     "daily" files.  Personally, I let the quotes and letters,
  177.     bulletins, etc. accumulate for a month or so.  Then I start a new
  178.     file and name the old one something like "upto1209.lst" and then
  179.     back that up to a floppy for historical reasons.  You can input
  180.     that file to PML again any time..no problem.
  181.  
  182.     If you decide to start following a stock, fund or bond, say
  183.     AAPL, and you haven't added the security to MetaStock yet; then
  184.     when PML comes across a new symbol, it will ask you for the "full
  185.     company name" of the symbol and add it to the data base for you.
  186.     Be sure you have enough room left in your data base, however.  
  187.     You can only have 255 data files per MetaStock data directory.
  188.     Occasionally you should run MSSORT to drop any old ones.
  189.  
  190.     As just described, PML will "beep" at you and ask you to
  191.     input a company symbol if it encounters a symbol not
  192.     contained in the MSP MASTER file.  If you are gathering
  193.     quotes into one file and updating more than one MSP MASTER
  194.     file, this could be a real hassle.  So, I added a switch "-s"
  195.     which says to "skip missing symbols".  Thus, if you run one
  196.     file past 2 or more MSP data bases, only the symbols that are 
  197.     in a data base will be updated.  This means you'll have to use 
  198.     the more traditional method of adding stocks to your MSP data
  199.     base, i.e., you'll have to do it through MSP.
  200.  
  201.     If you have Dow Jones Historical quotes, just specify the input
  202.     file containing the quotes as you would the Prodigy print image
  203.     file.  PML will pick out the quote data from any Dow Jones News or
  204.     other text.  If you have captured DJA (Dow Jones Averages), it is
  205.     necessary to modify the text slightly.  PML will change the heading
  206.     "INDUSTRIALS" to "STOCK DJ-30" (if you are calling the 30
  207.     Industrials by some other symbol name, you should edit the PMLASC.PRN
  208.     file to change this name). Also, PML adds one zero to the volume figures, 
  209.     because it appears that Dow Jones lies; they claim the volume is 
  210.     expressed in 100's, but it is really in 1000's.
  211.  
  212.  
  213.  
  214.    Summary of PML Features
  215.    -----------------------
  216.  
  217.    1) Extracts quote data from Prodigy print image file. PML
  218.       applies extensive checking to each line of the Prodigy print
  219.       image file to ensure that only stock/bond/fund quote data is
  220.       extracted.
  221.  
  222.    2) Ignores non-quote lines in Prodigy print image file, allowing
  223.       you to use the same file for saving printed mail, screen images,
  224.       etc.
  225.  
  226.    3) Fixes up the dates of the quotes so that they are on the previous
  227.       business day. This allows quotes to be retrieved on weekends or
  228.       early in the morning before the market opens.
  229.  
  230.    4) Allows multiple quotes for the same stock to be in the Prodigy
  231.       print image file. This allows you to accumulate quotes in a file
  232.       as long as you want without making you create a new file daily.
  233.  
  234.    5) Optionally creates an ASCII formatted quote file suitable for
  235.       input to a spreadsheet program or MCONVERT (MetaStock utility).
  236.  
  237.    6) Replaces and enhances the function of MCONVERT (MetaStock utility)
  238.       so that duplicate dates are not allowed in the MSP data file.
  239.  
  240.    7) Allows the creation of a new MSP data file when a symbol is
  241.       added for the first time.
  242.  
  243.    8) Extracts Dow Jones Historical Quote data as well.
  244.  
  245.  
  246.    PML Restrictions
  247.    -----------------
  248.  
  249.    1) Only "5-field" symbols are supported by PML
  250.  
  251.    2) No more than 10,000 quotes can be contained in a single Prodigy
  252.       quote file. If you need to input more quotes, break the file
  253.       into pieces and use multiple file names in the command line.
  254.  
  255.    3) This program will not work beyond the year 1999.
  256.  
  257.    4) No provision is made for holidays when date fixing is done.
  258.  
  259.    5) The total number of quotes in the MSP data file cannot exceed 3000.
  260.       This is about 11 1/2 years of daily quote data.
  261.  
  262.     How to Get Help
  263.     ---------------
  264.  
  265.     If you have any questions regarding the use of this program, or
  266.     you discover any problems, please send me a message on Prodigy
  267.     (JBMD65A).
  268.  
  269.     Good luck, and happy charting!
  270.  
  271.     
  272.    RECENT CHANGES TO PML
  273.    -----------------------
  274.    Version     Date    Change(s)
  275.    -------    -------  -----------------------------------------------
  276.    1.09       1/29/90  Added "-s" flag to "skip missing symbols"
  277.                        Fixed problem which occurred when Prodigy
  278.                        input quotes exceeded limit.
  279.    1.10       3/30/90  Bug fix for Mutual Funds and Bond quotes
  280.    1.11       4/23/90  Increased Prodigy print file QUOTE limit 
  281.                        from 2,000 to 10,000.
  282.  
  283.                        Place PML.RPT and PMLSYM.SUM files in MSP
  284.                        DATA directory. 
  285.    2.0        5/20/90  Added -q(0|1|2) to select level of reporting
  286.                        during MSP updating
  287.  
  288.  
  289.                   SAMPLE PML SUMMARY REPORT
  290.  
  291.                      Prodigy MetaStock Load (PML)
  292.                      Summary Report for 02/23/90
  293.                                                     AVG    PRICE   VOL%
  294. EQUITY NAME        HIGH     LOW   CLOSE   VOLUME   VOLUME  CHANGE CHANGE
  295.  
  296. ALCOA            62.500  61.875  62.375     1762     4161 +0.125   -58%
  297. Apple Computer   33.500  32.750  33.250    13389    14816 +0.250   -10%
  298. Ames Dept Store   5.625   5.500   5.625     2181     2348 +0.000    -7%
  299. AMERICAN FAMILY  15.500  15.250  15.250     1231     1348 -0.250    -9%
  300. AMER HOME PROD   99.375  97.750  98.500     1757     2063 -1.375   -15%
  301. KING OF DMK NIK   6.625   6.375   6.375     7954     4017 -0.125   +98% V
  302.  
  303.  
  304.    The PML Summary Report (found in file "PML.RPT") contains a summary
  305.    of the symbol updates for the day. If the volume exceeds 50% of the
  306.    average volume, a 'V' appears in the right column. If the price is a
  307.    New Low or New High, the characters "NL" or "NH" are shown in the
  308.    far right columns.
  309.  
  310.  
  311.  
  312.     +-----------------------------------------------------------------------+
  313.     |    If you find this program useful, please send $20 to:               |
  314.     |    Martin Moore, 11420 Rothschild Place, Dept. H, Dublin, CA, 94568    |
  315.     |   This will entitle you to a version without an expiration date       |
  316.     +-----------------------------------------------------------------------+
  317.  
  318.  
  319.